from processing.model.component import Node

class Root(Node):
    
    def __init__(self):
        Node.__init__(self)
        self.x = 0
        self.y = 0
        self.gx = 0
        self.gy = 0
            
    def update(self):
        for component in self.components:
            component.on_update()
            
    def draw(self):
        for component in self.components:
            component.on_draw()
